package com.heima.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.heima.pojo.domain.Region;
import com.heima.pojo.vo.RegionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RegionMapper extends BaseMapper<Region> {


    Page<RegionVo> queryList(String name,Long id);

    int insertRegion (@Param("name") String name,@Param("remark") String remark);

    int updateRegion(Long id, String regionName, String remark);

    int del(Long id);
}
